﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site1.Master" CodeBehind="details.aspx.vb" Inherits="NewDesigner.details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <br />
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="SqlDataSource1" BorderStyle="Solid">
        <Columns>
            <asp:ImageField DataImageUrlField="designerPic" HeaderText="Profile Pic">
                <ControlStyle CssClass="ProfilePic" />
            </asp:ImageField>
            <asp:BoundField DataField="designerName" HeaderText="Name" 
                SortExpression="designerName" />
            <asp:BoundField DataField="designerGender" HeaderText="Gender" 
                SortExpression="designerGender" />
            <asp:BoundField DataField="designerEmail" HeaderText="Email" 
                SortExpression="designerEmail" />
            <asp:BoundField DataField="designerInfo" HeaderText="Basic Info" 
                SortExpression="designerInfo" />
            <asp:BoundField DataField="designerWebsite" HeaderText="Website" 
                SortExpression="designerWebsite" />
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:nd_connectionString %>" 
        ProviderName="<%$ ConnectionStrings:nd_connectionString.ProviderName %>" 
        SelectCommand="SELECT [designerName], [designerGender], [designerEmail], [designerInfo], [designerPic], [designerWebsite] FROM [nd_table] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <p>
    </p>
    <p>
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" 
            DataSourceID="SqlDataSource2">
            <Columns>
                <asp:BoundField DataField="CommentsTitle" HeaderText="CommentsTitle" 
                    SortExpression="CommentsTitle" />
                <asp:BoundField DataField="CommentsBody" HeaderText="CommentsBody" 
                    SortExpression="CommentsBody" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:nd_connectionString %>" 
            ProviderName="<%$ ConnectionStrings:nd_connectionString.ProviderName %>" 
            SelectCommand="SELECT [CommentsTitle], [CommentsBody] FROM [nd_comments] WHERE ([Picture_fkid] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="Picture_fkid" QueryStringField="ID" 
                    Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
